HyperCard 2.0 contains an XCMD for displaying color or grayscale pictures. The XCMD works best under a memory partition of two or more megabytes, and fully supports 32-Bit QuickDraw.
You can send messages to the picture window to close it, zoom the picture or the window in or out, change the window size, and scroll the picture.
The format for using the XCMD to display pictures is:
Click on the parts of the command above for more information.
-- part contents for background part 2
----- text -----
DISPLAYING COLOR PICTURES
-- part contents for card part 3
----- text -----
SourceName is the name of the file or resource containing the picture to be displayed. If no name is given, the standard File diaolg box will be displayed, from which the user can select a PICT or PNTG file.
-- part contents for card part 4
----- text -----
SourceType is “resource” or “file” or “clipboard”. If no option is specified, the default is “file”.
-- part contents for card part 5
----- text -----
WindowStyle specifies the type of window in which the picture is to be displayed. The window type can be “plain”, “rect”, “zoom”,
“roundRect”, “dialog”, “shadow”, or “windoid”. The default is “zoom”.
-- part contents for card part 6
----- text -----
WindowPos specifies the rectangle, in global coordinates, that will be the bounding rectangle for the picture.
-- part contents for card part 7
----- text -----
Origin specifies the point of the picture, in the picture’s coordinate system, that is to be displayed in the top left corner of the window. The default is 0,0.
-- part contents for card part 8
----- text -----
Dithering is either “true” or “false”. Unless you have 32-bit QuickDraw installed , this parameter is ignored. The default is “false”.